HyperTalk Dictionary may be distributed freely except as part of any commerical product. This DA was created with Bill Steinberg's great DisplayDA. What a great tool! The data was drawn from the stack HyperTalk Index. Thanks to George John and BBR Unlimited for compiling and distributing this information. The number in the parentheses with each entry is a page number reference to "The Complete HyperCard Handbook" by Danny Goodman. George Coyne CIS - 75776,1463 GEnie - GWCoyne ----------------------------------------------------------------------- abs (number) Example: abs -25 abs Use: Returns the absolute value of a number (548) Add to Example: add field "item 1" to field "temp" add 1 to buffer Use: Adds one number (or number in a container) to another already in a container. (441) annuity (periodic rate, number of periods) Example: annuity (0.12, 24) Use: Returns the present value of a single payment unit. Multiply the result by the amount for the annuity value. (548) answer [with [or [or ]]] Example: answer "Delete Page" "OK" "Cancel" answer "Add Page" with "OK" or "Cancel" Use: Prompts the user with a dialog box. Places result in "it" (463) ask [with ] Example: ask "Enter number of pages" ask "What is the loan rate" with 12% Use: Prompt the user to type reply in a dialog box. Places response into "it". (465) ask password [with ] Example: ask "Please enter your password" "OK' "Cancel" Use: User stack access protection. The user's response is encrypted and stored for later verification. (465) atan (angle in radians) Example: atan (25) Use: Returns the arctangent of an angle (549) autoHilite Example: set autoHilite of card button 1 to true Use: Sets the hiliting of a check box button. (510) average (number list) Example: average (12,32,14,65) Use: Returns the average of a list of comma separated numbers. (549) beep [] Example: beep 5 beep field "Error" Use: Sends audible beep(s) to the user. (469) blindTyping Example: set the blindTyping to true. Use: Allows the operator to type into a hidden message box. (484) brush Example: set the brush to 12 Use: Establish the shape of the paintbrush tool (Default is 8). (494) centered Example: set the centered to true Use: Controls the Options menu setting for Draw Centered. (495) choose tool Example: choose button tool choose text tool choose browse tool Use: Selects a tool in the tool palette. The word "tool" must follow the named selection. (429) click at [with ] Example: click at 100,200 with OptionKey get loc of field 1 click at it Use: Equivalent to clicking at a screen coordinate. Use with "loc" command. (430) close printing Example: close printing Use: Tells HyperCard that printing is complete. (439) close file Example: close file "Resume" close it Use: Closes access to disk file (475) compound (periodic rate, number of periods) Example: compound (0.12, 36) Use: Returns the future value factor based upon the rate and number of periods. (549) convert to Example: convert field 1 to seconds convert "Date" to short date convert it to long time Use: Converts date and time to allow manipulation and display (446) cos (angle in radians) Example: cos (34) Use: Returns the cosine of an angle. (549) cursor Example: set the cursor to 4 Use: Determines which cursor is displayed on the screen. (ID Numbers 1 through 4 are valid) (485) delete Example: delete field "Name" delete word of field "Name" delete line 1 of field 5 Use: Removes text from a field or container (420) dial [with [modem]] Example: dial 555-1212 dial it dial "Number" with modem "ATS7=IDT" Use: Sends dial commands to the modem or audio port. (424) divide by Example: divide field 1 by 60 divide it by field "Total" divide field 1 by field 2 Use: Divides a number in a container by another number or container. (445) do Example: do field "Command" of card 1 do it do field ID 2707 Use: Performs the HyperCard command located at the beginning of a container. (428) doMenu Example: doMenu "New Card" doMenu "Find..." doMenu "First" Use: Selects and executes any menu item. The menu item must be entered exactly as it appears in the menu. (420) down Example: if the optionKey is down Use: Test the conditions of keyboard keys or the mouse button. (577) drag from to [with] Example: drag from 350,125 to 350, 235 drag from buf1 to buf2 Use: Drags the mouse across the screen. Use "loc" command to determine coordinates. (431) dragSpeed Example: set dragSpeed to 150 Use: Controls the speed in pixels per second, at which the drag command operates. (486) edit script of Example: edit script of card 5 edit script of card button "Password" edit script of stack "Auto Sign-on" Use: Opens the Script Editor window to allow for script modification. (458) editBkgnd Example: set editBkgnd to true Use: Activates/Deactivates the background for editing. (487) empty Example: put empty into field ID 5 Use: Null text string. Use to clear a container. (579) exp (number) Example: exp(4) Use: Returns the natural base-e exponential. (549) exp1 (number) Example: exp1(4) Use: Returns the natural exponential minus 1. (550) exp2 (number) Example: exp2(4) Use: Returns the base-2 exponential. (550) false Use: Sets conditions or tests the results of an operation. (577) filled Example: set the filled to true Use: Controls the Options menu setting for Draw Filled. (495) find [char[acter]s | word] [in ] Example: find "98004" in "ZIP" field find field 1 in field 2 find temp1 Use: Searches the current stack or a specific field in current stack for a string (case insensitive). (409) formfeed Example: write formfeed to file "Misc. Text" Use: Control character for printers. Used in printing text files created with the write command. (580) get (1) [of ] Example: get location of button "Name" get textFont of field 1 get name of button 3 Use: Retrieves object properties and places them in "it". You must specify the type of object (e.g. card, button,etc.). (454) get (2) Example: get field 5 get the short date get item 1 of field "Criteria" Use: Places the the contents of an expression in the local variable "it". (419) global Example: global Temp1 global Buf1,Buf2,Buf3 global ZipCode Use: Initializes a variable that will retain information after a message handler ends. (457) go [to] Example: go to card ID 3452 go back go to second card of "To Do" Use: Navigation command that takes you from one card or stack to another. (407) grid Example: set the grid to true Use: Activates/Deactivates the screen drawing grid. (496) help Example: help Use: Takes the user to the help file. Used in conjunction with a trap for custom help files. (413) hide menubar | | Example: hide menubar hide tool window hide backgroung button 3 Use: Hide objects from view. The complement of the show command. (449) hilite Example: set hilite of bkgnd button 1 to true Use: Set the hiliting of a button when clicked. (510) icon Example: set icon of button "?" to 23142 Use: Controls the icon art that is assigned to a button when accompanied by a valid icon name or number. (511) if then if then else Example: if field 1 is empty then if field 1 is 2 then go next else go home Use: Test for conditions. (586) language Example: set the language to French Use: Controls the language editor in use to translate the English scripts to a different language. (487) linefeed Example: write linefeed to file "Misc. Text" Use: Control character for printers. Used in printing text files created with the write command. (580) lineSize <1,2,3,4,6, or 8 pixels> Example: set lineSize to 6 Use: Determines the thickness of lines painted by various tools. (Default is 10.) (497) ln (number) Example: ln(4) Use: Returns the natural base-e logarithm. (550) ln1 (number) Example: ln1(4) Use: Returns the natural log of 1 plus the number (550) loc[ation] , Example: set location of tool window to 45,125 set loc of pattern window to 150,200 Use: Defines the display position of the top left corner of a window (492) loc[ation]
,
Example: set loc of field 3 to 100,200 get location of field 8 Use: Sets or gets the center point of a field. (503) loc[ation]
,
Example: set loc of card button 1 to 50,100 Use: Controls the centerpoint of a button on the screen. (512) lockScreen Example: set lockScreen to true Use: Controls the screen updating during script execution. May help speed the execution of long scripts. (488) lockText Example: set lockText of card field 2 to true Use: Controls the ability to modify field text. (504) max (number list) Example: max 24,35,36,12) Use: Returns the highest value number in the list. (550) min (number list) Example: min(14,24,46,23) Use: Returns the lowest value number in the list. (550) multiple Example: set multiple to true Use: Controls the Draw Multiple menu option. Adjust image with multiSpace command. (497) multiply by Example: multiply field 1 by field 2 multiply field "hours" by 5.5 multiply field ID 3423 by field "Total" Use: Multiplies one value in a container by a second value. (444) multiSpace <1 to 9> Example: set the multiSpace to 8 Use: Determines the number of pixels between multiple images. Use in conjunction with multiple command. (497) name Example: get the name of this card set the name of this stack to "Test" get the short name of this stack Use: Sets the name of an object. (501) name